package com.common.models;

public class RetCode {
		
	//返回码定义，0为成功码，非0为错误码
	public static final int SUCCESS = 0;//成功
	public static final String SUCCESS_MSG = "成功";
	
	public static final int ERROR = 1;//失败
	public static final String ERROR_MSG = "失败";
	
	
	public static final int KAPCHA_ERR = -1001;
	public static final String KAPCHA_ERR_MSG = "验证码或手机号错误";
	
	public static final int LOGIN_TIME_OUT = -1002;//登录超时
	public static final String LOGIN_TIME_OUT_MSG = "登录超时";
	
	public static final int NEED_RELOGIN= -1003;
	public static final String NEED_RELOGIN_MSG = "请重新登录";
	
	public static final int LOGIN_FAIL = -1004;//你的账号已被拉黑,解冻请联系客服
	public static final String LOGIN_FAIL_MSG = "你的账号已被拉黑,解冻请联系客服";
	
	public static final int PARAM_ERR = -2001;//参数错误
	public static final String PARAM_ERR_MSG = "参数错误";
	public static final int MOBILE_ERR = -2002;//参数错误
	public static final String MOBILE_ERR_MSG = "手机号格式不正确";
	
	public static final int SERVER_ERR = -2002;//服务器内部错误
	public static final String SERVER_ERR_MSG = "服务器内部错误";
	public static final int SMSCODE_ERR = -2003;//发送验证码失败
	public static final String SMSCODE_ERR_MSG = "发送验证码失败";
	public static final int SMSCODE_MORE_ERR = -2004;//一分钟内发送多次
	public static final String SMSCODE_MORE_ERR_MSG = "一分钟内发送多次";
	public static final String SMSCODE_OVER_ERR_MSG = "验证码已过期，请重新获取验证码";
	public static final String SMSCODE_SUCCESS_ERR_MSG = "短信验证码已发送,有效期一小时";
	public static final String INVITE_REGISTER_ERR_MSG = "你已注册巢小筑平台,不能多次领取";
	
	
	public static final int AUTHORITY_FAIL= -3001;	//鉴权失败
	public static final String AUTHORITY_FAIL_MSG = "权限不足";
	
	public static final int TIMESTAMP_ERROR = -3002;	//时间戳有误
	public static final String TIMESTAMP_ERROR_MSG =	"无效的时间戳";
	
	public static final int TOKEN_ERROR = -3003;		//顾客app token令牌错误
	public static final String TOKEN_ERROR_MSG =	"请重新登录";
	
	public static final int ORDER_CREATE_FAIL = -4001;	//下单失败
	public static final String ORDER_CREATE_FAIL_MSG = "未能成功下单";
	
	public static final int ORDER_AUTOMATIC_CANCLE = -4002;	//下单失败
	public static final String ORDER_AUTOMATIC_CANCLE_MSG = "订单30分钟内未支付已自动取消";
	
	public static final int ORDER_MORE = -4003;	//同一时间同一入住人不能存在多个订单
	public static final String ORDER_MORE_MSG = "同一时间同一入住人不能存在多个订单";
	
	
	public static final int JU_HE_CERTIFICATION = -6001;	//实名认证失败
	public static final String JU_HE_CERTIFICATION_MSG = "实名认证失败";
	
	
	
	public static final int FILE_SIZE_OVER = -7001;	//文件大小不能超过20M
	public static final String FILE_SIZE_OVER_MSG = "文件大小不能超过20M";
	
	public static final String WEIXIN_USER_LOGIN_FAIL_UNIONID_NULL_MSG="无法获得微信的授权标识";
	public static final String QQ_USER_LOGIN_FAIL_UNIONID_NULL_MSG="无法获得QQ的授权标识";
	public static final String WEIXIN_USER_MOBILE_EXIST="该手机号已绑定微信，请输入其他手机号";
	public static final String QQ_USER_MOBILE_EXIST="该手机号已绑定QQ，请输入其他手机号";
	
	
	
	public static final int USER_IS_EXIST = -5002;	//该用户已存在
	public static final String USER_IS_EXIST_MSG = "该用户已存在";
	
	//自用参数
	public static final int DEFAULT_PAGE_SIZE = 10;
}
